$gwx_XC_18=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){
if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={};
}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {};
var e_={}
if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys;
var d_={}
if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines;
var f_={}
if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {};
var p_={}
__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {}
__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {};
__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {};
var z=__WXML_GLOBAL__.ops_set.$gwx_XC_18 || [];
function gz$gwx_XC_18_1(){
if( __WXML_GLOBAL__.ops_cached.$gwx_XC_18_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_18_1
__WXML_GLOBAL__.ops_cached.$gwx_XC_18_1=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[7],[3,'is_waiting']])
Z([[2,'!'],[[7],[3,'is_waiting']]])
Z([3,'evaluate_wrap'])
Z([[7],[3,'comment_list']])
Z([3,'index'])
Z([3,'#FA7B14'])
Z([[6],[[7],[3,'item']],[3,'score']])
Z([1,5])
Z([[2,'<='],[[6],[[7],[3,'comment_list']],[3,'length']],[1,0]])
Z([[7],[3,'loading']])
Z([[2,'&&'],[[2,'!'],[[7],[3,'loading']]],[[2,'!'],[[7],[3,'hasMore']]]])
})(__WXML_GLOBAL__.ops_cached.$gwx_XC_18_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_18_1
}
__WXML_GLOBAL__.ops_set.$gwx_XC_18=z;
__WXML_GLOBAL__.ops_init.$gwx_XC_18=true;
var x=['./pages/comment/commentList/commentList.wxml'];d_[x[0]]={}
var m0=function(e,s,r,gg){
var z=gz$gwx_XC_18_1()
var tYC=_n('page-loading')
_rz(z,tYC,'loading',0,e,s,gg)
_(r,tYC)
var aXC=_v()
_(r,aXC)
if(_oz(z,1,e,s,gg)){aXC.wxVkey=1
var eZC=_n('view')
_rz(z,eZC,'class',2,e,s,gg)
var o2C=_v()
_(eZC,o2C)
var x3C=function(f5C,o4C,c6C,gg){
var o8C=_mz(z,'tui-rate',['active',5,'current',1,'quantity',2],[],f5C,o4C,gg)
_(c6C,o8C)
return c6C
}
o2C.wxXCkey=4
_2z(z,3,x3C,e,s,gg,o2C,'item','index','index')
var b1C=_v()
_(eZC,b1C)
if(_oz(z,8,e,s,gg)){b1C.wxVkey=1
}
else{b1C.wxVkey=2
var c9C=_n('view')
var o0C=_v()
_(c9C,o0C)
if(_oz(z,9,e,s,gg)){o0C.wxVkey=1
}
var lAD=_v()
_(c9C,lAD)
if(_oz(z,10,e,s,gg)){lAD.wxVkey=1
}
o0C.wxXCkey=1
lAD.wxXCkey=1
_(b1C,c9C)
}
b1C.wxXCkey=1
_(aXC,eZC)
}
aXC.wxXCkey=1
aXC.wxXCkey=3
return r
}
e_[x[0]]=e_[x[0]]||{f:m0,j:[],i:[],ti:[],ic:[]}
if(path&&e_[path]){
return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[]
;g="$gwx_XC_18";var main=e_[path].f
if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1);
try{
main(env,{},root,global);
_tsd(root)
}catch(err){
console.log(err)
}
;g="";
return root;
}
}
}
}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_18();	if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/comment/commentList/commentList.wxml'] = [$gwx_XC_18, './pages/comment/commentList/commentList.wxml'];else __wxAppCode__['pages/comment/commentList/commentList.wxml'] = $gwx_XC_18( './pages/comment/commentList/commentList.wxml' );
	;__wxRoute = "pages/comment/commentList/commentList";__wxRouteBegin = true;__wxAppCurrentFile__="pages/comment/commentList/commentList.js";define("pages/comment/commentList/commentList.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){
"use strict";var e=require("../../../@babel/runtime/helpers/interopRequireDefault")(require("../../../@babel/runtime/regenerator")),t=require("../../../@babel/runtime/helpers/asyncToGenerator"),a=require("../../../request/api");Page({data:{comment_list:[],product_id:148,page:1,row:20,hasMore:!1,is_waiting:!0,loading:!1,counts:0},onLoad:function(e){this.setData({product_id:e.product_id||""}),this.getCommentLists()},onShow:function(){},onPullDownRefresh:function(){this.setData({page:1}),this.getCommentLists(),wx.stopPullDownRefresh()},onReachBottom:function(){var e=this.data,t=e.hasMore,a=e.page;t&&(a++,this.setData({page:a}),this.getCommentLists())},getCommentLists:function(){var r=this;return t(e.default.mark((function t(){var n,s,i,o,u,c,m,d,g,l,p,h,f;return e.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.data,s=n.product_id,i=n.page,o=n.row,u=n.comment_list,c=n.hasMore,m=n.counts,d={product_id:s,page:i,row:o},e.next=4,(0,a.getCommentLists)(d);case 4:g=e.sent,l=g.data,p=g.allPage,h=g.count,f=g.nowPage,h>99999&&(h+="+"),h&&(u=1==i?l:u.concat(l),c=f<p,m=h),r.setData({hasMore:c,comment_list:u,loading:!1,is_waiting:!1,counts:m});case 12:case"end":return e.stop()}}),t)})))()},previewImage:function(e){var t=this.data.comment_list,a=e.currentTarget.dataset,r=a.index,n=a.src,s=t[r].images.map((function(e){return e.resource_url}));wx.previewImage({current:n,urls:s})}});
},{isPage:true,isComponent:true,currentFile:'pages/comment/commentList/commentList.js'});require("pages/comment/commentList/commentList.js");